Skip to content

feat(android): an Android lease only uses a system image that fits its model - #526

Merged
V3RON merged 7 commits into
task/488from
task/489
Oct 13, 2026
Merged

V3RON merged 7 commits into
task/488from
task/489

Conversation

@V3RON

@V3RON V3RON commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Closes #489

Status

Implement: done (3812/3812 green) Review: round 1, 8 text fixed unreviewed Hardware: n/a (slow lane allowed for every PR of the #485 run) Gate: waiting for the stack

Done when

  • The "each row" test passes. Checked in the suite.
  • simlock catalog --platform android --json lists for each library, SDK and custom model only levels with a fitting image. Checked by the catalog tests.
  • docs/CLI.md says how Android models pair with images (modelRuntimes, the sentence "On Android every model pairs with every installed API level"), what --image-tag and --allow-download do for a misfit, the new RUNTIME_MISSING messages, and that an idle device on a level that no longer fits is not reused. Checked by the claims review.

Assumptions

  • Assumption: refusal wording for XR and AI glasses kinds — the red tests pin TV, Wear OS, automotive, desktop, "phone or tablet" and "an image tagged " only; the XR and AI glasses sentences are left to green.
  • Assumption: how fits reads the source.properties level — a sourceApiLevel field on ImageFitInput (placeholder), set by #installedImages from AndroidVersion.ApiLevel.

Review

Spec review: 2 blocking, 2 fixed, 1 notes. Code review: 4 blocking, 4 fixed, 1 notes. Claims review: 3 blocking, 3 fixed, 4 notes.
Rounds: 1. Tokens: 6.2M.

Fixed unreviewed (text): 8 test, comment and doc fixes from round 1, in 691547c. The Play Store "refused" case in index.test.ts was removed, not rewritten: that pair can no longer reach provision.

Written by an agent.

@V3RON

V3RON commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Review notes

Not blocking, not verified. Each is one reviewer's claim.

  • spec: src/drivers/android/image-fit.ts:679 with no version given, "newer"/"older" in the refusal message depends only on images[0] (range 24-33 with images at 21 and 35 says "needs 24 or newer", yet 35 is refused)
  • code: src/core/doctor.ts:1130 a warm target spelled other than the catalog key (an alias such as "television (1080p)") still gets the false "Android 35 is not installed" finding with the component-install remedy
  • claims: docs/CLI.md:2139 the runtime-missing doctor finding is described as "runtime is not installed"; an installed but unpaired version now gets "does not pair" and a catalog remedy
  • claims: docs/CLI.md:512 an idle device on an unfitting level is described as "not reused by a lease that names the model"; a lease naming the model with an --os range still picks it
  • claims: src/drivers/android/index.test.ts:4623 the title says "uninstalled level"; its first assertion (Pixel 9 at 34) is a level with an android-tv image installed
  • claims: src/drivers/android/device-profile-source.test.ts:34 the title says the raw tag is kept "besides the class it maps to"; the body asserts only the tag, never the class
  • code: src/drivers/android/index.ts:1312 profile.playStore && in the PlayStore.enabled line is dead now that the fit check refuses a Play Store image for a profile without Play Store (from the fix run)

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review October 13, 2026 19:32
@V3RON
V3RON added this pull request to stack #525 October 13, 2026 19:33
@V3RON
V3RON merged commit 5a27313 into main Oct 13, 2026
42 checks passed
@V3RON
V3RON deleted the task/489 branch October 13, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

An Android lease only uses a system image that fits its model

1 participant